# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=font-noto-emoji
pkgver=2.034
pkgrel=0
pkgdesc="Google Noto emoji fonts"
url="https://github.com/googlefonts/noto-emoji"
arch="noarch"
license="OFL-1.1"
makedepends="
	bash
	cairo-dev
	imagemagick
	libpng-dev
	nototools
	optipng
	pngquant
	py3-fonttools
	py3-setuptools
	python3
	zopfli
	"
source="https://github.com/googlefonts/noto-emoji/archive/v$pkgver/font-noto-emoji-$pkgver.tar.gz"
options="!check" # No code to test
builddir="$srcdir/noto-emoji-$pkgver"

build() {
	make VIRTUAL_ENV=False BYPASS_SEQUENCE_CHECK=True
}

package() {
	# Fonts in the fonts/ subdirectory are pre-built.
	# TODO: Figure out if we can build NotoEmoji-Regular.ttf too somehow
	install -Dm644 -t "$pkgdir"/usr/share/fonts/noto \
		NotoColorEmoji.ttf \
		fonts/NotoEmoji-Regular.ttf
}

sha512sums="
a7ea0c33f4703749d8a30f4be2fac5971429dcec7b6feed2645854d9ae1eebb428597a56ad148c3732e320a65d4133da30c0003ed39f07c5270462e31fdf3d0b  font-noto-emoji-2.034.tar.gz
"
